//
//  MSLevelUpManager.m
//  MagicSword
//
//  Created by Netease on 15/12/3.
//  Copyright © 2015年 Jonear. All rights reserved.
//

#import "MSLevelUpManager.h"

@implementation MSLevelUpInfo

@end

@implementation MSLevelUpManager

+ (MSLevelUpInfo *)getLevelUpInfo:(NSInteger)level heroModel:(MSHeroModel)model {
    MSLevelUpInfo *info = [[MSLevelUpInfo alloc] init];
    info.MaxHP = 10;
    info.Attack = 2;
//    info.DoubleHit = 1;
//    info.Vampire = 1;
//    info.MissValue = 1;
    return info;
}


+ (void)LevelUp:(MSHeroInfo *)heroInfo {
    MSLevelUpInfo *info = [MSLevelUpManager getLevelUpInfo:heroInfo.level heroModel:heroInfo.type];
    heroInfo.HP += info.MaxHP;
    heroInfo.MaxHP += info.MaxHP;
    heroInfo.Attack += info.Attack;
    heroInfo.Defense += info.Defense;
    heroInfo.Crit += info.Crit;
    heroInfo.DoubleHit += info.DoubleHit;
    heroInfo.Vampire += info.Vampire;
    heroInfo.MissValue += info.MissValue;
}

@end
